.class public Lcom/nemustech/regina/ReginaLauncherSettings;
.super Landroid/preference/PreferenceActivity;
.source "ReginaLauncherSettings.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/nemustech/regina/ReginaLauncherSettings$BackupAndRestoring;
    }
.end annotation


# static fields
.field private static final TAG:Ljava/lang/String; = "ReginaLauncherSettings"


# instance fields
.field private mAppContext:Landroid/content/Context;

.field private mBackupAndRestoring:Lcom/nemustech/regina/ReginaLauncherSettings$BackupAndRestoring;

.field private mBackupAndRestoringThread:Ljava/lang/Thread;

.field private mBackupPref:Landroid/preference/Preference;

.field private mBrowserName:Landroid/preference/CheckBoxPreference;

.field private mDialogCareSecret:Lcom/nemustech/regina/DialogCareSecret;

.field private mExpansion:Landroid/preference/CheckBoxPreference;

.field private mFAQPref:Landroid/preference/Preference;

.field private mGettingStartedPref:Landroid/preference/Preference;

.field private mHandler:Landroid/os/Handler;

.field private mHideSecretMenu:Landroid/preference/CheckBoxPreference;

.field private mPersistentPref:Landroid/preference/CheckBoxPreference;

.field private mReflectionAppList:Landroid/preference/CheckBoxPreference;

.field private mReflectionWsScroller:Landroid/preference/CheckBoxPreference;

.field private mRestartPref:Landroid/preference/Preference;

.field private mRestorePref:Landroid/preference/Preference;

.field private mSetToDefPref:Landroid/preference/Preference;

.field private mSharedEditor:Landroid/content/SharedPreferences$Editor;

.field private mSharedPref:Landroid/content/SharedPreferences;

.field private mUninstallPref:Landroid/preference/Preference;

.field private mVersionCheckPref:Landroid/preference/Preference;

.field private mVisibleSecretMenu:Z

.field private mWorkspaceEndlessPref:Landroid/preference/CheckBoxPreference;

.field private mWorkspaceName:Landroid/preference/CheckBoxPreference;

.field private mWorkspaceVibration:Landroid/preference/CheckBoxPreference;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 26
    invoke-direct {p0}, Landroid/preference/PreferenceActivity;-><init>()V

    .line 57
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mHandler:Landroid/os/Handler;

    .line 66
    return-void
.end method

.method static synthetic access$000(Lcom/nemustech/regina/ReginaLauncherSettings;Landroid/content/Context;Z)Z
    .locals 1
    .parameter "x0"
    .parameter "x1"
    .parameter "x2"

    .prologue
    .line 26
    invoke-direct {p0, p1, p2}, Lcom/nemustech/regina/ReginaLauncherSettings;->backupFiles(Landroid/content/Context;Z)Z

    move-result v0

    return v0
.end method

.method static synthetic access$100(Lcom/nemustech/regina/ReginaLauncherSettings;)Lcom/nemustech/regina/DialogCareSecret;
    .locals 1
    .parameter "x0"

    .prologue
    .line 26
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mDialogCareSecret:Lcom/nemustech/regina/DialogCareSecret;

    return-object v0
.end method

.method static synthetic access$1000(Lcom/nemustech/regina/ReginaLauncherSettings;)Landroid/preference/CheckBoxPreference;
    .locals 1
    .parameter "x0"

    .prologue
    .line 26
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mWorkspaceName:Landroid/preference/CheckBoxPreference;

    return-object v0
.end method

.method static synthetic access$1100(Lcom/nemustech/regina/ReginaLauncherSettings;)Landroid/preference/CheckBoxPreference;
    .locals 1
    .parameter "x0"

    .prologue
    .line 26
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mBrowserName:Landroid/preference/CheckBoxPreference;

    return-object v0
.end method

.method static synthetic access$1200(Lcom/nemustech/regina/ReginaLauncherSettings;)Landroid/preference/CheckBoxPreference;
    .locals 1
    .parameter "x0"

    .prologue
    .line 26
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mWorkspaceVibration:Landroid/preference/CheckBoxPreference;

    return-object v0
.end method

.method static synthetic access$1300(Lcom/nemustech/regina/ReginaLauncherSettings;)Landroid/content/Context;
    .locals 1
    .parameter "x0"

    .prologue
    .line 26
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mAppContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$1400(Lcom/nemustech/regina/ReginaLauncherSettings;)Lcom/nemustech/regina/ReginaLauncherSettings$BackupAndRestoring;
    .locals 1
    .parameter "x0"

    .prologue
    .line 26
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mBackupAndRestoring:Lcom/nemustech/regina/ReginaLauncherSettings$BackupAndRestoring;

    return-object v0
.end method

.method static synthetic access$1402(Lcom/nemustech/regina/ReginaLauncherSettings;Lcom/nemustech/regina/ReginaLauncherSettings$BackupAndRestoring;)Lcom/nemustech/regina/ReginaLauncherSettings$BackupAndRestoring;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 26
    iput-object p1, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mBackupAndRestoring:Lcom/nemustech/regina/ReginaLauncherSettings$BackupAndRestoring;

    return-object p1
.end method

.method static synthetic access$1500(Lcom/nemustech/regina/ReginaLauncherSettings;)Ljava/lang/Thread;
    .locals 1
    .parameter "x0"

    .prologue
    .line 26
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mBackupAndRestoringThread:Ljava/lang/Thread;

    return-object v0
.end method

.method static synthetic access$1502(Lcom/nemustech/regina/ReginaLauncherSettings;Ljava/lang/Thread;)Ljava/lang/Thread;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 26
    iput-object p1, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mBackupAndRestoringThread:Ljava/lang/Thread;

    return-object p1
.end method

.method static synthetic access$1600(Lcom/nemustech/regina/ReginaLauncherSettings;)Landroid/preference/CheckBoxPreference;
    .locals 1
    .parameter "x0"

    .prologue
    .line 26
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mReflectionWsScroller:Landroid/preference/CheckBoxPreference;

    return-object v0
.end method

.method static synthetic access$1700(Lcom/nemustech/regina/ReginaLauncherSettings;)Landroid/preference/CheckBoxPreference;
    .locals 1
    .parameter "x0"

    .prologue
    .line 26
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mReflectionAppList:Landroid/preference/CheckBoxPreference;

    return-object v0
.end method

.method static synthetic access$1800(Lcom/nemustech/regina/ReginaLauncherSettings;)Landroid/preference/CheckBoxPreference;
    .locals 1
    .parameter "x0"

    .prologue
    .line 26
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mExpansion:Landroid/preference/CheckBoxPreference;

    return-object v0
.end method

.method static synthetic access$400(Lcom/nemustech/regina/ReginaLauncherSettings;)Landroid/os/Handler;
    .locals 1
    .parameter "x0"

    .prologue
    .line 26
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mHandler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$500(Lcom/nemustech/regina/ReginaLauncherSettings;)Landroid/content/SharedPreferences;
    .locals 1
    .parameter "x0"

    .prologue
    .line 26
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedPref:Landroid/content/SharedPreferences;

    return-object v0
.end method

.method static synthetic access$600(Lcom/nemustech/regina/ReginaLauncherSettings;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 26
    iget-boolean v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mVisibleSecretMenu:Z

    return v0
.end method

.method static synthetic access$602(Lcom/nemustech/regina/ReginaLauncherSettings;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 26
    iput-boolean p1, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mVisibleSecretMenu:Z

    return p1
.end method

.method static synthetic access$700(Lcom/nemustech/regina/ReginaLauncherSettings;)Landroid/preference/CheckBoxPreference;
    .locals 1
    .parameter "x0"

    .prologue
    .line 26
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mHideSecretMenu:Landroid/preference/CheckBoxPreference;

    return-object v0
.end method

.method static synthetic access$800(Lcom/nemustech/regina/ReginaLauncherSettings;)Landroid/content/SharedPreferences$Editor;
    .locals 1
    .parameter "x0"

    .prologue
    .line 26
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedEditor:Landroid/content/SharedPreferences$Editor;

    return-object v0
.end method

.method static synthetic access$900(Lcom/nemustech/regina/ReginaLauncherSettings;)Landroid/preference/CheckBoxPreference;
    .locals 1
    .parameter "x0"

    .prologue
    .line 26
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mWorkspaceEndlessPref:Landroid/preference/CheckBoxPreference;

    return-object v0
.end method

.method private backupFiles(Landroid/content/Context;Z)Z
    .locals 24
    .parameter "context"
    .parameter "isBackup"

    .prologue
    .line 510
    new-instance v10, Ljava/io/File;

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Landroid/os/Environment;->getDataDirectory()Ljava/io/File;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v20

    const-string v21, "/data/"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    const-string v21, "com.nemustech.regina"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    const-string v21, "/databases/"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    const-string v21, "regina_launcher.db"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    move-object v0, v10

    move-object/from16 v1, v20

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 513
    .local v10, internalDBFile:Ljava/io/File;
    new-instance v6, Ljava/io/File;

    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v20

    const-string v21, "regina_launcher.db"

    move-object v0, v6

    move-object/from16 v1, v20

    move-object/from16 v2, v21

    invoke-direct {v0, v1, v2}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    .line 515
    .local v6, externalDBFile:Ljava/io/File;
    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    const v21, 0x7f070001

    move-object/from16 v0, p0

    move/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    const-string v21, ".xml"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    .line 516
    .local v14, prefName:Ljava/lang/String;
    new-instance v11, Ljava/io/File;

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Landroid/os/Environment;->getDataDirectory()Ljava/io/File;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v20

    const-string v21, "/data/"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    const-string v21, "com.nemustech.regina"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    const-string v21, "/shared_prefs/"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    move-object/from16 v0, v20

    move-object v1, v14

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    move-object v0, v11

    move-object/from16 v1, v20

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 519
    .local v11, internalPrefFile:Ljava/io/File;
    new-instance v7, Ljava/io/File;

    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v20

    move-object v0, v7

    move-object/from16 v1, v20

    move-object v2, v14

    invoke-direct {v0, v1, v2}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    .line 524
    .local v7, externalPrefFile:Ljava/io/File;
    const-string v20, "%s/data/%s/files/"

    const/16 v21, 0x2

    move/from16 v0, v21

    new-array v0, v0, [Ljava/lang/Object;

    move-object/from16 v21, v0

    const/16 v22, 0x0

    invoke-static {}, Landroid/os/Environment;->getDataDirectory()Ljava/io/File;

    move-result-object v23

    aput-object v23, v21, v22

    const/16 v22, 0x1

    const-string v23, "com.nemustech.regina"

    aput-object v23, v21, v22

    invoke-static/range {v20 .. v21}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v12

    .line 526
    .local v12, internalWallpaperPath:Ljava/lang/String;
    const-string v20, "%s/%s/"

    const/16 v21, 0x2

    move/from16 v0, v21

    new-array v0, v0, [Ljava/lang/Object;

    move-object/from16 v21, v0

    const/16 v22, 0x0

    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v23

    aput-object v23, v21, v22

    const/16 v22, 0x1

    const-string v23, "ReginaBackup"

    aput-object v23, v21, v22

    invoke-static/range {v20 .. v21}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v8

    .line 529
    .local v8, externalWallpaperPath:Ljava/lang/String;
    new-instance v13, Ljava/io/File;

    const-string v20, "%s/%s"

    const/16 v21, 0x2

    move/from16 v0, v21

    new-array v0, v0, [Ljava/lang/Object;

    move-object/from16 v21, v0

    const/16 v22, 0x0

    aput-object v8, v21, v22

    const/16 v22, 0x1

    const-string v23, ".nomedia"

    aput-object v23, v21, v22

    invoke-static/range {v20 .. v21}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v20

    move-object v0, v13

    move-object/from16 v1, v20

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 535
    .local v13, noMediaFile:Ljava/io/File;
    if-eqz p2, :cond_3

    .line 536
    move-object v15, v10

    .line 537
    .local v15, srcFile:Ljava/io/File;
    move-object v3, v6

    .line 538
    .local v3, dstFile:Ljava/io/File;
    move-object/from16 v16, v11

    .line 539
    .local v16, srcPrefFile:Ljava/io/File;
    move-object v4, v7

    .line 541
    .local v4, dstPrefFile:Ljava/io/File;
    const v18, 0x7f0700e0

    .line 542
    .local v18, strIdFileNotFound:I
    const v19, 0x7f0700e1

    .line 543
    .local v19, strIdFileNotReadable:I
    const v17, 0x7f0700df

    .line 555
    .local v17, strIdFail:I
    :goto_0
    invoke-virtual {v3}, Ljava/io/File;->exists()Z

    move-result v20

    if-eqz v20, :cond_0

    .line 556
    invoke-virtual {v3}, Ljava/io/File;->delete()Z

    .line 558
    :cond_0
    invoke-virtual {v4}, Ljava/io/File;->exists()Z

    move-result v20

    if-eqz v20, :cond_1

    .line 559
    invoke-virtual {v4}, Ljava/io/File;->delete()Z

    .line 562
    :cond_1
    invoke-virtual {v15}, Ljava/io/File;->exists()Z

    move-result v20

    if-eqz v20, :cond_2

    invoke-virtual/range {v16 .. v16}, Ljava/io/File;->exists()Z

    move-result v20

    if-nez v20, :cond_4

    .line 563
    :cond_2
    const-string v20, "ReginaLauncherSettings"

    move-object/from16 v0, p1

    move/from16 v1, v18

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v21

    const/16 v22, 0x1

    invoke-static/range {v20 .. v22}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 564
    const/16 v20, 0x0

    .line 606
    :goto_1
    return v20

    .line 545
    .end local v3           #dstFile:Ljava/io/File;
    .end local v4           #dstPrefFile:Ljava/io/File;
    .end local v15           #srcFile:Ljava/io/File;
    .end local v16           #srcPrefFile:Ljava/io/File;
    .end local v17           #strIdFail:I
    .end local v18           #strIdFileNotFound:I
    .end local v19           #strIdFileNotReadable:I
    :cond_3
    move-object v15, v6

    .line 546
    .restart local v15       #srcFile:Ljava/io/File;
    move-object v3, v10

    .line 547
    .restart local v3       #dstFile:Ljava/io/File;
    move-object/from16 v16, v7

    .line 548
    .restart local v16       #srcPrefFile:Ljava/io/File;
    move-object v4, v11

    .line 550
    .restart local v4       #dstPrefFile:Ljava/io/File;
    const v18, 0x7f0700e5

    .line 551
    .restart local v18       #strIdFileNotFound:I
    const v19, 0x7f0700e6

    .line 552
    .restart local v19       #strIdFileNotReadable:I
    const v17, 0x7f0700e4

    .restart local v17       #strIdFail:I
    goto :goto_0

    .line 565
    :cond_4
    invoke-virtual {v15}, Ljava/io/File;->canRead()Z

    move-result v20

    if-eqz v20, :cond_5

    invoke-virtual/range {v16 .. v16}, Ljava/io/File;->canRead()Z

    move-result v20

    if-nez v20, :cond_6

    .line 566
    :cond_5
    const-string v20, "ReginaLauncherSettings"

    move-object/from16 v0, p1

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v21

    const/16 v22, 0x1

    invoke-static/range {v20 .. v22}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 567
    const/16 v20, 0x0

    goto :goto_1

    .line 571
    :cond_6
    :try_start_0
    invoke-virtual {v3}, Ljava/io/File;->createNewFile()Z

    .line 572
    invoke-static {v15, v3}, Lcom/nemustech/regina/RUtils;->copyFile(Ljava/io/File;Ljava/io/File;)V

    .line 575
    invoke-virtual {v4}, Ljava/io/File;->createNewFile()Z

    .line 576
    move-object/from16 v0, v16

    move-object v1, v4

    invoke-static {v0, v1}, Lcom/nemustech/regina/RUtils;->copyFile(Ljava/io/File;Ljava/io/File;)V

    .line 579
    const/16 v20, 0x1

    move/from16 v0, p2

    move/from16 v1, v20

    if-ne v0, v1, :cond_8

    .line 581
    const/16 v20, 0x0

    move-object v0, v8

    move-object/from16 v1, v20

    invoke-static {v0, v1}, Lcom/nemustech/regina/RUtils;->deleteFiles(Ljava/lang/String;Ljava/io/FilenameFilter;)V

    .line 582
    invoke-static {v12, v8}, Lcom/nemustech/regina/RUtils;->copyFiles(Ljava/lang/String;Ljava/lang/String;)Z

    .line 583
    invoke-virtual {v13}, Ljava/io/File;->createNewFile()Z

    .line 595
    :goto_2
    if-nez p2, :cond_7

    .line 596
    invoke-direct/range {p0 .. p0}, Lcom/nemustech/regina/ReginaLauncherSettings;->updateSharedPref()V

    .line 597
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedEditor:Landroid/content/SharedPreferences$Editor;

    move-object/from16 v20, v0

    const-string v21, "regina.launcher.restart"

    const/16 v22, 0x1

    invoke-interface/range {v20 .. v22}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    .line 598
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedEditor:Landroid/content/SharedPreferences$Editor;

    move-object/from16 v20, v0

    invoke-interface/range {v20 .. v20}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 606
    :cond_7
    const/16 v20, 0x1

    goto :goto_1

    .line 586
    :cond_8
    new-instance v9, Lcom/nemustech/regina/ReginaLauncherSettings$19;

    move-object v0, v9

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings$19;-><init>(Lcom/nemustech/regina/ReginaLauncherSettings;)V

    .line 591
    .local v9, filter:Ljava/io/FilenameFilter;
    invoke-static {v12, v9}, Lcom/nemustech/regina/RUtils;->deleteFiles(Ljava/lang/String;Ljava/io/FilenameFilter;)V

    .line 592
    invoke-static {v8, v12}, Lcom/nemustech/regina/RUtils;->copyFiles(Ljava/lang/String;Ljava/lang/String;)Z
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_2

    .line 600
    .end local v9           #filter:Ljava/io/FilenameFilter;
    :catch_0
    move-exception v20

    move-object/from16 v5, v20

    .line 601
    .local v5, e:Ljava/io/IOException;
    const-string v20, "ReginaLauncherSettings"

    move-object/from16 v0, p1

    move/from16 v1, v17

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v21

    const/16 v22, 0x1

    invoke-static/range {v20 .. v22}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 602
    const/16 v20, 0x0

    goto/16 :goto_1
.end method

.method private updateSharedPref()V
    .locals 3

    .prologue
    .line 501
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mAppContext:Landroid/content/Context;

    const v1, 0x7f070001

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedPref:Landroid/content/SharedPreferences;

    .line 502
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedPref:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedEditor:Landroid/content/SharedPreferences$Editor;

    .line 503
    return-void
.end method


# virtual methods
.method public getSecretPassword()Ljava/lang/String;
    .locals 3

    .prologue
    .line 610
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedPref:Landroid/content/SharedPreferences;

    const-string v1, "regina.launcher.secret.passnum"

    const/4 v2, 0x0

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getSharedPref()Landroid/content/SharedPreferences;
    .locals 1

    .prologue
    .line 506
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedPref:Landroid/content/SharedPreferences;

    return-object v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 24
    .parameter "savedInstanceState"

    .prologue
    .line 103
    invoke-super/range {p0 .. p1}, Landroid/preference/PreferenceActivity;->onCreate(Landroid/os/Bundle;)V

    .line 105
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ReginaLauncherSettings;->getApplicationContext()Landroid/content/Context;

    move-result-object v19

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ReginaLauncherSettings;->mAppContext:Landroid/content/Context;

    .line 106
    new-instance v19, Lcom/nemustech/regina/DialogCareSecret;

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/DialogCareSecret;-><init>(Lcom/nemustech/regina/ReginaLauncherSettings;)V

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ReginaLauncherSettings;->mDialogCareSecret:Lcom/nemustech/regina/DialogCareSecret;

    .line 108
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ReginaLauncherSettings;->getPreferenceManager()Landroid/preference/PreferenceManager;

    move-result-object v19

    const v20, 0x7f070001

    move-object/from16 v0, p0

    move/from16 v1, v20

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v20

    invoke-virtual/range {v19 .. v20}, Landroid/preference/PreferenceManager;->setSharedPreferencesName(Ljava/lang/String;)V

    .line 109
    invoke-direct/range {p0 .. p0}, Lcom/nemustech/regina/ReginaLauncherSettings;->updateSharedPref()V

    .line 111
    const/high16 v19, 0x7f04

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->addPreferencesFromResource(I)V

    .line 139
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ReginaLauncherSettings;->getIntent()Landroid/content/Intent;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v19

    const-string v20, "IsSecret"

    invoke-virtual/range {v19 .. v20}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v9

    .line 140
    .local v9, isSecretMode:Z
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedPref:Landroid/content/SharedPreferences;

    move-object/from16 v19, v0

    const v20, 0x7f070093

    move-object/from16 v0, p0

    move/from16 v1, v20

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v20

    const/16 v21, 0x1

    invoke-interface/range {v19 .. v21}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v19

    move/from16 v0, v19

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/nemustech/regina/ReginaLauncherSettings;->mVisibleSecretMenu:Z

    .line 142
    const v19, 0x7f07008e

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v6

    check-cast v6, Landroid/preference/PreferenceCategory;

    .line 143
    .local v6, category:Landroid/preference/PreferenceCategory;
    if-nez v9, :cond_0

    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mVisibleSecretMenu:Z

    move/from16 v19, v0

    if-eqz v19, :cond_2

    .line 144
    :cond_0
    const v19, 0x7f070092

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v8

    .line 145
    .local v8, hideApplication:Landroid/preference/Preference;
    new-instance v19, Lcom/nemustech/regina/ReginaLauncherSettings$1;

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings$1;-><init>(Lcom/nemustech/regina/ReginaLauncherSettings;)V

    move-object v0, v8

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 152
    const v19, 0x7f070093

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object p1

    .end local p1
    check-cast p1, Landroid/preference/CheckBoxPreference;

    move-object/from16 v0, p1

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ReginaLauncherSettings;->mHideSecretMenu:Landroid/preference/CheckBoxPreference;

    .line 153
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mHideSecretMenu:Landroid/preference/CheckBoxPreference;

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mVisibleSecretMenu:Z

    move/from16 v20, v0

    if-nez v20, :cond_1

    const/16 v20, 0x1

    :goto_0
    invoke-virtual/range {v19 .. v20}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

    .line 154
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mHideSecretMenu:Landroid/preference/CheckBoxPreference;

    move-object/from16 v19, v0

    new-instance v20, Lcom/nemustech/regina/ReginaLauncherSettings$2;

    move-object/from16 v0, v20

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings$2;-><init>(Lcom/nemustech/regina/ReginaLauncherSettings;)V

    invoke-virtual/range {v19 .. v20}, Landroid/preference/CheckBoxPreference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 180
    const v19, 0x7f070094

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v16

    .line 181
    .local v16, secretPassword:Landroid/preference/Preference;
    new-instance v19, Lcom/nemustech/regina/ReginaLauncherSettings$3;

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings$3;-><init>(Lcom/nemustech/regina/ReginaLauncherSettings;)V

    move-object/from16 v0, v16

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 199
    .end local v8           #hideApplication:Landroid/preference/Preference;
    .end local v16           #secretPassword:Landroid/preference/Preference;
    :goto_1
    const v19, 0x7f070096

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object p1

    check-cast p1, Landroid/preference/CheckBoxPreference;

    move-object/from16 v0, p1

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ReginaLauncherSettings;->mWorkspaceEndlessPref:Landroid/preference/CheckBoxPreference;

    .line 200
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mWorkspaceEndlessPref:Landroid/preference/CheckBoxPreference;

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedPref:Landroid/content/SharedPreferences;

    move-object/from16 v20, v0

    const v21, 0x7f070096

    move-object/from16 v0, p0

    move/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v21

    const/16 v22, 0x0

    invoke-interface/range {v20 .. v22}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v20

    invoke-virtual/range {v19 .. v20}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

    .line 201
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mWorkspaceEndlessPref:Landroid/preference/CheckBoxPreference;

    move-object/from16 v19, v0

    new-instance v20, Lcom/nemustech/regina/ReginaLauncherSettings$4;

    move-object/from16 v0, v20

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings$4;-><init>(Lcom/nemustech/regina/ReginaLauncherSettings;)V

    invoke-virtual/range {v19 .. v20}, Landroid/preference/CheckBoxPreference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 211
    const v19, 0x7f0700a8

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object p1

    check-cast p1, Landroid/preference/CheckBoxPreference;

    move-object/from16 v0, p1

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ReginaLauncherSettings;->mWorkspaceName:Landroid/preference/CheckBoxPreference;

    .line 212
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mWorkspaceName:Landroid/preference/CheckBoxPreference;

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedPref:Landroid/content/SharedPreferences;

    move-object/from16 v20, v0

    const v21, 0x7f0700a8

    move-object/from16 v0, p0

    move/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v21

    const/16 v22, 0x1

    invoke-interface/range {v20 .. v22}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v20

    invoke-virtual/range {v19 .. v20}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

    .line 213
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mWorkspaceName:Landroid/preference/CheckBoxPreference;

    move-object/from16 v19, v0

    new-instance v20, Lcom/nemustech/regina/ReginaLauncherSettings$5;

    move-object/from16 v0, v20

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings$5;-><init>(Lcom/nemustech/regina/ReginaLauncherSettings;)V

    invoke-virtual/range {v19 .. v20}, Landroid/preference/CheckBoxPreference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 222
    const v19, 0x7f0700a9

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object p1

    check-cast p1, Landroid/preference/CheckBoxPreference;

    move-object/from16 v0, p1

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ReginaLauncherSettings;->mBrowserName:Landroid/preference/CheckBoxPreference;

    .line 223
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mBrowserName:Landroid/preference/CheckBoxPreference;

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedPref:Landroid/content/SharedPreferences;

    move-object/from16 v20, v0

    const v21, 0x7f0700a9

    move-object/from16 v0, p0

    move/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v21

    const/16 v22, 0x1

    invoke-interface/range {v20 .. v22}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v20

    invoke-virtual/range {v19 .. v20}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

    .line 224
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mBrowserName:Landroid/preference/CheckBoxPreference;

    move-object/from16 v19, v0

    new-instance v20, Lcom/nemustech/regina/ReginaLauncherSettings$6;

    move-object/from16 v0, v20

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings$6;-><init>(Lcom/nemustech/regina/ReginaLauncherSettings;)V

    invoke-virtual/range {v19 .. v20}, Landroid/preference/CheckBoxPreference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 233
    const v19, 0x7f0700a6

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object p1

    check-cast p1, Landroid/preference/CheckBoxPreference;

    move-object/from16 v0, p1

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ReginaLauncherSettings;->mWorkspaceVibration:Landroid/preference/CheckBoxPreference;

    .line 234
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mWorkspaceVibration:Landroid/preference/CheckBoxPreference;

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedPref:Landroid/content/SharedPreferences;

    move-object/from16 v20, v0

    const v21, 0x7f0700a6

    move-object/from16 v0, p0

    move/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v21

    const/16 v22, 0x1

    invoke-interface/range {v20 .. v22}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v20

    invoke-virtual/range {v19 .. v20}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

    .line 235
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mWorkspaceVibration:Landroid/preference/CheckBoxPreference;

    move-object/from16 v19, v0

    new-instance v20, Lcom/nemustech/regina/ReginaLauncherSettings$7;

    move-object/from16 v0, v20

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings$7;-><init>(Lcom/nemustech/regina/ReginaLauncherSettings;)V

    invoke-virtual/range {v19 .. v20}, Landroid/preference/CheckBoxPreference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 244
    const v19, 0x7f070098

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v19

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ReginaLauncherSettings;->mBackupPref:Landroid/preference/Preference;

    .line 245
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mBackupPref:Landroid/preference/Preference;

    move-object/from16 v19, v0

    new-instance v20, Lcom/nemustech/regina/ReginaLauncherSettings$8;

    move-object/from16 v0, v20

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings$8;-><init>(Lcom/nemustech/regina/ReginaLauncherSettings;)V

    invoke-virtual/range {v19 .. v20}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 275
    const v19, 0x7f070099

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v19

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ReginaLauncherSettings;->mRestorePref:Landroid/preference/Preference;

    .line 276
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mRestorePref:Landroid/preference/Preference;

    move-object/from16 v19, v0

    new-instance v20, Lcom/nemustech/regina/ReginaLauncherSettings$9;

    move-object/from16 v0, v20

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings$9;-><init>(Lcom/nemustech/regina/ReginaLauncherSettings;)V

    invoke-virtual/range {v19 .. v20}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 314
    :try_start_0
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/ReginaLauncherSettings;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v19

    const-string v20, "com.nemustech.regina"

    const/16 v21, 0x0

    invoke-virtual/range {v19 .. v21}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v19

    move-object/from16 v0, v19

    iget v0, v0, Landroid/content/pm/PackageInfo;->versionCode:I

    move/from16 v18, v0

    .line 317
    .local v18, versionCode:I
    move/from16 v0, v18

    div-int/lit16 v0, v0, 0x2710

    move/from16 v19, v0

    invoke-static/range {v19 .. v19}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v13

    .line 320
    .local v13, major:Ljava/lang/String;
    invoke-static {v13}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v19

    move/from16 v0, v19

    mul-int/lit16 v0, v0, 0x2710

    move/from16 v19, v0

    sub-int v18, v18, v19

    .line 321
    div-int/lit8 v19, v18, 0x64

    invoke-static/range {v19 .. v19}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v14

    .line 324
    .local v14, minor:Ljava/lang/String;
    invoke-static {v14}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v19

    mul-int/lit8 v19, v19, 0x64

    sub-int v18, v18, v19

    .line 325
    invoke-static/range {v18 .. v18}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v15

    .line 327
    .local v15, point:Ljava/lang/String;
    const v19, 0x7f070085

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v19

    const/16 v20, 0x1

    move/from16 v0, v20

    new-array v0, v0, [Ljava/lang/Object;

    move-object/from16 v20, v0

    const/16 v21, 0x0

    new-instance v22, Ljava/lang/StringBuilder;

    invoke-direct/range {v22 .. v22}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, v22

    move-object v1, v13

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v22

    const-string v23, "."

    invoke-virtual/range {v22 .. v23}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v22

    move-object/from16 v0, v22

    move-object v1, v14

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v22

    const-string v23, "."

    invoke-virtual/range {v22 .. v23}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v22

    move-object/from16 v0, v22

    move-object v1, v15

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v22

    invoke-virtual/range {v22 .. v22}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v22

    aput-object v22, v20, v21

    invoke-static/range {v19 .. v20}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v17

    .line 328
    .local v17, version:Ljava/lang/String;
    const v19, 0x7f07009b

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v19

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ReginaLauncherSettings;->mVersionCheckPref:Landroid/preference/Preference;

    .line 329
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mVersionCheckPref:Landroid/preference/Preference;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Landroid/preference/Preference;->setTitle(Ljava/lang/CharSequence;)V

    .line 330
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mVersionCheckPref:Landroid/preference/Preference;

    move-object/from16 v19, v0

    const v20, 0x7f0700b2

    move-object/from16 v0, p0

    move/from16 v1, v20

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v20

    invoke-virtual/range {v19 .. v20}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

    .line 331
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mVersionCheckPref:Landroid/preference/Preference;

    move-object/from16 v19, v0

    new-instance v20, Lcom/nemustech/regina/ReginaLauncherSettings$10;

    move-object/from16 v0, v20

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings$10;-><init>(Lcom/nemustech/regina/ReginaLauncherSettings;)V

    invoke-virtual/range {v19 .. v20}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    .line 345
    .end local v13           #major:Ljava/lang/String;
    .end local v14           #minor:Ljava/lang/String;
    .end local v15           #point:Ljava/lang/String;
    .end local v17           #version:Ljava/lang/String;
    .end local v18           #versionCode:I
    :goto_2
    const v19, 0x7f07009c

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v19

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ReginaLauncherSettings;->mRestartPref:Landroid/preference/Preference;

    .line 346
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mRestartPref:Landroid/preference/Preference;

    move-object/from16 v19, v0

    new-instance v20, Lcom/nemustech/regina/ReginaLauncherSettings$11;

    move-object/from16 v0, v20

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings$11;-><init>(Lcom/nemustech/regina/ReginaLauncherSettings;)V

    invoke-virtual/range {v19 .. v20}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 356
    const v19, 0x7f07009e

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v19

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ReginaLauncherSettings;->mSetToDefPref:Landroid/preference/Preference;

    .line 357
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSetToDefPref:Landroid/preference/Preference;

    move-object/from16 v19, v0

    new-instance v20, Lcom/nemustech/regina/ReginaLauncherSettings$12;

    move-object/from16 v0, v20

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings$12;-><init>(Lcom/nemustech/regina/ReginaLauncherSettings;)V

    invoke-virtual/range {v19 .. v20}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 385
    const v19, 0x7f07009d

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v19

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ReginaLauncherSettings;->mUninstallPref:Landroid/preference/Preference;

    .line 386
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mUninstallPref:Landroid/preference/Preference;

    move-object/from16 v19, v0

    new-instance v20, Lcom/nemustech/regina/ReginaLauncherSettings$13;

    move-object/from16 v0, v20

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings$13;-><init>(Lcom/nemustech/regina/ReginaLauncherSettings;)V

    invoke-virtual/range {v19 .. v20}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 433
    const v19, 0x7f0700a0

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object p1

    check-cast p1, Landroid/preference/CheckBoxPreference;

    move-object/from16 v0, p1

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ReginaLauncherSettings;->mReflectionWsScroller:Landroid/preference/CheckBoxPreference;

    .line 434
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mReflectionWsScroller:Landroid/preference/CheckBoxPreference;

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedPref:Landroid/content/SharedPreferences;

    move-object/from16 v20, v0

    const v21, 0x7f0700a0

    move-object/from16 v0, p0

    move/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v21

    const/16 v22, 0x1

    invoke-interface/range {v20 .. v22}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v20

    invoke-virtual/range {v19 .. v20}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

    .line 435
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mReflectionWsScroller:Landroid/preference/CheckBoxPreference;

    move-object/from16 v19, v0

    new-instance v20, Lcom/nemustech/regina/ReginaLauncherSettings$14;

    move-object/from16 v0, v20

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings$14;-><init>(Lcom/nemustech/regina/ReginaLauncherSettings;)V

    invoke-virtual/range {v19 .. v20}, Landroid/preference/CheckBoxPreference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 445
    const v19, 0x7f0700a1

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object p1

    check-cast p1, Landroid/preference/CheckBoxPreference;

    move-object/from16 v0, p1

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ReginaLauncherSettings;->mReflectionAppList:Landroid/preference/CheckBoxPreference;

    .line 446
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mReflectionAppList:Landroid/preference/CheckBoxPreference;

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedPref:Landroid/content/SharedPreferences;

    move-object/from16 v20, v0

    const v21, 0x7f0700a1

    move-object/from16 v0, p0

    move/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v21

    const/16 v22, 0x1

    invoke-interface/range {v20 .. v22}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v20

    invoke-virtual/range {v19 .. v20}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

    .line 447
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mReflectionAppList:Landroid/preference/CheckBoxPreference;

    move-object/from16 v19, v0

    new-instance v20, Lcom/nemustech/regina/ReginaLauncherSettings$15;

    move-object/from16 v0, v20

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings$15;-><init>(Lcom/nemustech/regina/ReginaLauncherSettings;)V

    invoke-virtual/range {v19 .. v20}, Landroid/preference/CheckBoxPreference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 456
    const v19, 0x7f0700a2

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object p1

    check-cast p1, Landroid/preference/CheckBoxPreference;

    move-object/from16 v0, p1

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ReginaLauncherSettings;->mExpansion:Landroid/preference/CheckBoxPreference;

    .line 457
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mExpansion:Landroid/preference/CheckBoxPreference;

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedPref:Landroid/content/SharedPreferences;

    move-object/from16 v20, v0

    const v21, 0x7f0700a2

    move-object/from16 v0, p0

    move/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v21

    const/16 v22, 0x1

    invoke-interface/range {v20 .. v22}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v20

    invoke-virtual/range {v19 .. v20}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

    .line 458
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mExpansion:Landroid/preference/CheckBoxPreference;

    move-object/from16 v19, v0

    new-instance v20, Lcom/nemustech/regina/ReginaLauncherSettings$16;

    move-object/from16 v0, v20

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings$16;-><init>(Lcom/nemustech/regina/ReginaLauncherSettings;)V

    invoke-virtual/range {v19 .. v20}, Landroid/preference/CheckBoxPreference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 467
    const v19, 0x7f0700a3

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v10

    .line 468
    .local v10, keyAntiAliasing:Ljava/lang/String;
    move-object/from16 v0, p0

    move-object v1, v10

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v4

    check-cast v4, Landroid/preference/CheckBoxPreference;

    .line 469
    .local v4, antiAliasing:Landroid/preference/CheckBoxPreference;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedPref:Landroid/content/SharedPreferences;

    move-object/from16 v19, v0

    const/16 v20, 0x1

    move-object/from16 v0, v19

    move-object v1, v10

    move/from16 v2, v20

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v19

    move-object v0, v4

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

    .line 470
    new-instance v19, Lcom/nemustech/regina/ReginaLauncherSettings$17;

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    move-object v2, v10

    move-object v3, v4

    invoke-direct {v0, v1, v2, v3}, Lcom/nemustech/regina/ReginaLauncherSettings$17;-><init>(Lcom/nemustech/regina/ReginaLauncherSettings;Ljava/lang/String;Landroid/preference/CheckBoxPreference;)V

    move-object v0, v4

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/preference/CheckBoxPreference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 479
    const v19, 0x7f0700ab

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v11

    .line 480
    .local v11, keyAppListScrollEffect:Ljava/lang/String;
    move-object/from16 v0, p0

    move-object v1, v11

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v5

    check-cast v5, Landroid/preference/CheckBoxPreference;

    .line 481
    .local v5, appListScrollEffect:Landroid/preference/CheckBoxPreference;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedPref:Landroid/content/SharedPreferences;

    move-object/from16 v19, v0

    const/16 v20, 0x1

    move-object/from16 v0, v19

    move-object v1, v11

    move/from16 v2, v20

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v19

    move-object v0, v5

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

    .line 482
    new-instance v19, Lcom/nemustech/regina/ReginaLauncherSettings$18;

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    move-object v2, v11

    move-object v3, v5

    invoke-direct {v0, v1, v2, v3}, Lcom/nemustech/regina/ReginaLauncherSettings$18;-><init>(Lcom/nemustech/regina/ReginaLauncherSettings;Ljava/lang/String;Landroid/preference/CheckBoxPreference;)V

    move-object v0, v5

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/preference/CheckBoxPreference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 491
    const v19, 0x7f0700a5

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v19

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ReginaLauncherSettings;->mGettingStartedPref:Landroid/preference/Preference;

    .line 492
    const v19, 0x7f0700d7

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v12

    .line 493
    .local v12, link:Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mGettingStartedPref:Landroid/preference/Preference;

    move-object/from16 v19, v0

    new-instance v20, Landroid/content/Intent;

    invoke-direct/range {v20 .. v20}, Landroid/content/Intent;-><init>()V

    const-string v21, "android.intent.action.VIEW"

    invoke-virtual/range {v20 .. v21}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    move-result-object v20

    invoke-static {v12}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    move-result-object v20

    invoke-virtual/range {v19 .. v20}, Landroid/preference/Preference;->setIntent(Landroid/content/Intent;)V

    .line 495
    const v19, 0x7f0700a4

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v19

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/nemustech/regina/ReginaLauncherSettings;->mFAQPref:Landroid/preference/Preference;

    .line 496
    const v19, 0x7f0700d8

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v12

    .line 497
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/ReginaLauncherSettings;->mFAQPref:Landroid/preference/Preference;

    move-object/from16 v19, v0

    new-instance v20, Landroid/content/Intent;

    invoke-direct/range {v20 .. v20}, Landroid/content/Intent;-><init>()V

    const-string v21, "android.intent.action.VIEW"

    invoke-virtual/range {v20 .. v21}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    move-result-object v20

    invoke-static {v12}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    move-result-object v20

    invoke-virtual/range {v19 .. v20}, Landroid/preference/Preference;->setIntent(Landroid/content/Intent;)V

    .line 498
    return-void

    .line 153
    .end local v4           #antiAliasing:Landroid/preference/CheckBoxPreference;
    .end local v5           #appListScrollEffect:Landroid/preference/CheckBoxPreference;
    .end local v10           #keyAntiAliasing:Ljava/lang/String;
    .end local v11           #keyAppListScrollEffect:Ljava/lang/String;
    .end local v12           #link:Ljava/lang/String;
    .restart local v8       #hideApplication:Landroid/preference/Preference;
    :cond_1
    const/16 v20, 0x0

    goto/16 :goto_0

    .line 196
    .end local v8           #hideApplication:Landroid/preference/Preference;
    .restart local p1
    :cond_2
    const v19, 0x7f070091

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getString(I)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v19

    move-object v0, v6

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/preference/PreferenceCategory;->removePreference(Landroid/preference/Preference;)Z

    goto/16 :goto_1

    .line 339
    .end local p1
    :catch_0
    move-exception v19

    move-object/from16 v7, v19

    .line 341
    .local v7, e:Landroid/content/pm/PackageManager$NameNotFoundException;
    invoke-virtual {v7}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V

    goto/16 :goto_2
.end method

.method protected onCreateDialog(I)Landroid/app/Dialog;
    .locals 3
    .parameter "id"

    .prologue
    .line 634
    const-string v0, "ReginaLauncherSettings"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "onCreateDialog() id="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 636
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mDialogCareSecret:Lcom/nemustech/regina/DialogCareSecret;

    invoke-virtual {v0, p1}, Lcom/nemustech/regina/DialogCareSecret;->createDialog(I)Landroid/app/Dialog;

    move-result-object v0

    return-object v0
.end method

.method protected onDestroy()V
    .locals 3

    .prologue
    .line 641
    const-string v0, "ReginaLauncherSettings"

    const-string v1, "ReginaLauncherSettings onDestroy()"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 642
    invoke-super {p0}, Landroid/preference/PreferenceActivity;->onDestroy()V

    .line 643
    return-void
.end method

.method protected onPause()V
    .locals 3

    .prologue
    .line 653
    const-string v0, "ReginaLauncherSettings"

    const-string v1, "ReginaLauncherSettings onPause()"

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 654
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mDialogCareSecret:Lcom/nemustech/regina/DialogCareSecret;

    invoke-virtual {v0}, Lcom/nemustech/regina/DialogCareSecret;->closeCurrentDialog()V

    .line 655
    invoke-super {p0}, Landroid/preference/PreferenceActivity;->onPause()V

    .line 656
    return-void
.end method

.method protected onResume()V
    .locals 3

    .prologue
    .line 660
    const-string v0, "ReginaLauncherSettings"

    const-string v1, "ReginaLauncherSettings onResume()"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 661
    invoke-super {p0}, Landroid/preference/PreferenceActivity;->onResume()V

    .line 662
    return-void
.end method

.method protected onStart()V
    .locals 3

    .prologue
    .line 666
    const-string v0, "ReginaLauncherSettings"

    const-string v1, "ReginaLauncherSettings onStart()"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 667
    invoke-super {p0}, Landroid/preference/PreferenceActivity;->onStart()V

    .line 668
    return-void
.end method

.method protected onStop()V
    .locals 3

    .prologue
    .line 647
    const-string v0, "ReginaLauncherSettings"

    const-string v1, "ReginaLauncherSettings onStop()"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 648
    invoke-super {p0}, Landroid/preference/PreferenceActivity;->onStop()V

    .line 649
    return-void
.end method

.method public setSecretPassword(Ljava/lang/String;)V
    .locals 2
    .parameter "pass"

    .prologue
    .line 624
    if-eqz p1, :cond_0

    .line 625
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    .line 626
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedEditor:Landroid/content/SharedPreferences$Editor;

    const-string v1, "regina.launcher.secret.passnum"

    invoke-interface {v0, v1, p1}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 627
    iget-object v0, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedEditor:Landroid/content/SharedPreferences$Editor;

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 630
    :cond_0
    return-void
.end method

.method public setSecretPassword([I)V
    .locals 3
    .parameter "pass"

    .prologue
    .line 614
    if-eqz p1, :cond_0

    .line 615
    array-length v1, p1

    if-lez v1, :cond_0

    .line 616
    invoke-static {p1}, Lcom/nemustech/regina/RUtils;->convertIntArrayToString([I)Ljava/lang/String;

    move-result-object v0

    .line 617
    .local v0, password:Ljava/lang/String;
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedEditor:Landroid/content/SharedPreferences$Editor;

    const-string v2, "regina.launcher.secret.passnum"

    invoke-interface {v1, v2, v0}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 618
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncherSettings;->mSharedEditor:Landroid/content/SharedPreferences$Editor;

    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 621
    .end local v0           #password:Ljava/lang/String;
    :cond_0
    return-void
.end method
